package com.harmonk.firstscene.db.entity

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(tableName = "traffic_events", indices = [Index(value = ["eventId"], unique = true)])
data class TrafficEvent(
    @PrimaryKey(autoGenerate = true)
    val eventId: Long = 0,
    val timestamp: Long = 0,
    val roadId: Long = -1,
    val direction: Int = 0,
    val isMainLine: Boolean = true,
    val kilometer: Int = 0,
    val meter: Int = 0,
    val location: String = "",
    val brief: String = "",
    val haveVehicleDamage: Boolean = true,
    val haveInjuries: Boolean = false,
    val haveRoadPropertyLoss: Boolean = false,
    val haveGoodsLoss: Boolean = false,
    val haveRescueExpenses: Boolean = false
)